package com.yuanfeng.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuanfeng.base.dto.BaseArticleBaseDTO;
import com.yuanfeng.base.entity.BaseArticleBaseEntity;
import com.yuanfeng.base.vo.index.WebArticleBaseNameVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName BaseArticleBaseMapper
 * @Description  网站初始化内容设置
 * @Author cyp
 * @Date 2023-05-22 18:54:37
 * @Version 1.0
 **/
@Mapper
public interface BaseArticleBaseMapper extends BaseMapper<BaseArticleBaseEntity> {


  List<WebArticleBaseNameVO> selectByGroupId(@Param("articleGroupId")Integer articleGroupId, @Param("pageSize")Integer pageSize);


    /**
     * 文章插入
     *
     * @param param
     */
    void articleInsert(@Param("param") BaseArticleBaseDTO param);

    /**
     * 查询文章基础
     *
     * @param page
     * @param param
     * @return
     */
    IPage<BaseArticleBaseEntity> queryArticleBase(IPage<BaseArticleBaseEntity> page, @Param("param") BaseArticleBaseDTO param);
 }

